package ${basePackage}.generator;import freemarker.template.TemplateException;import java.io.File;import java.io.IOException;/** * 核心生成器 */public class MainGenerator {    /**     * 生成     * @param model 模型     * @throws TemplateException     * @throws IOException     */    public static void doGenerate(Object model) throws TemplateException, IOException {        String inputRootPath = "${fileConfig.inputRootPath}";        String outputRootPath = "${fileConfig.outputRootPath}";        String inputPath;        String outputPath;<#list fileConfig.files as fileInfo>        inputPath = new File(inputRootPath,"${fileInfo.inputPath}").getCanonicalPath();        outputPath = new File(outputRootPath,"${fileInfo.outputPath}").getCanonicalPath();<#if fileInfo.generateType == "static">        StaticGenerator.copyFilesByHutool(inputPath,outputPath);<#else>        DynamicGenerator.doGenerate(inputPath,outputPath,model);</#if></#list>    }}